package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-8-21
 */
@Data
@Table(name = "device_overview")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DeviceOverview {

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long deviceId;
    private Integer x;
    private Integer y;
    private Integer h;
    private Integer w;
    private Integer channelId;
    private String variable;
    private String kmxMachineId;// 特殊字段，kmx存储数据的machineId

    @JsonIgnore
    private String variableName;
    private int type;
    private String fieldgroupId;

    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

    @Transient
    private String name;
    @Transient
    private String unit;
    @Transient
    private Double kmxValue;
    @Transient
    private String limitType;



}
